package com.valentinalee.bms.service.impl;

import java.sql.SQLException;
import java.util.List;

import com.valentinalee.bms.dao.FileSystemDAO;
import com.valentinalee.bms.dao.StudentDao;
import com.valentinalee.bms.dao.impl.FileSystemDAOImpl;
import com.valentinalee.bms.dao.impl.StudentDaoImpl;
import com.valentinalee.bms.entity.FileSystemVO;
import com.valentinalee.bms.service.FileSystemService;

public class FileSystemServiceImpl  implements FileSystemService{
	FileSystemDAO fsd = new FileSystemDAOImpl();
	public FileSystemVO addFileRmark(FileSystemVO vo) throws SQLException {
		// TODO Auto-generated method stub
		FileSystemVO fsv = fsd.addFileRmark(vo);
		return fsv;
	}
	public int queryFileSystemByKey(String key, int pageSize, int pageNo,
			List<FileSystemVO> pageData) throws Exception {
		// 参数验证
				// 查询总记录数
//				StudentDAO dao = new StudentDAOImpl();
				FileSystemDAO dao = new FileSystemDAOImpl();
				int totalcount =  dao.queryByKey(key, pageSize, pageNo, pageData);
				
				return totalcount;
	}
	public FileSystemVO setFileRmark(FileSystemVO vo) throws SQLException {
		// TODO Auto-generated method stub
				FileSystemVO fsv = fsd.setFileRmark(vo);
				return fsv;
	}
	public FileSystemVO FileQuery(String id) {
		return fsd.FileQuery(id);
	}
	public Integer updateFileUserById(String fileUser, String id) {
		return fsd.updateFileUserById(fileUser, id);
	}
	
	
	public FileSystemVO getFileInfoById(String id) {
		return fsd.getFileInfoById(id);
	}

}
